<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        .div1{
            width: 300px;
            height:400px;
            border: 3px solid red;
            overflow-x: scroll;
        }
        .div2{
            width:500px;
            height:200px;
            background: green;
        }

    </style>
</head>
<body>
<div class="div1">div1
    <div class="div2">div2div2div2322323div2div2div2div2</div></div>


</body>
</html>